package com.fulu.game.bi.mysql.playadmin.channel;

import com.fulu.game.bi.entity.po.channel.LabelKeywords;
import com.fulu.game.bi.mysql.bi.ICommonDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dengzhuo
 * @email ${email}
 * @date 2020-04-25 20:02:13
 */
@Mapper
public interface LabelKeywordsDao extends ICommonDao<LabelKeywords, Integer> {

    List<LabelKeywords> findByParameter(LabelKeywords labelKeywordsBO);

    List<Integer> findLabelIdByKeywordsLike(@Param("likeKeywords")String likeKeywords);

    List<Integer> findLabelIdByKeywords(@Param("keywords")String keywords);

    List<String> findKeywordsByLabelId(@Param("labelId")Integer labelId);

    int insertList(@Param("list")List<LabelKeywords> list);

    int deleteByLabelId(@Param("labelId")Integer labelId);

    List<String> findKeywordsByKeywordsLike(@Param("likeKeywords")String likeKeywords);

}
